import state from "./state";
import axios from "axios";

const mutations = {
  //方法
  changeloginLoading: (state, payload) => {
    state.loginLoading = payload;
  },
  getMenus: (state, payload) => {
    state.menus = payload;
  },
  getStudent: (state, payload) => {
    state.students = payload;
    /*const stuinfo = axios.post('/api/search',payload.data);*/
    /*sessionStorage.setItem('stuinfo',JSON.stringify(stuinfo.data));
    //state.students = stuinfo.data;
    console.log(JSON.parse(sessionStorage.getItem('stuinfo')));*/
  },

}


export default mutations;